package com.softaria.gwt.common.client.widget;

import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.HTML;

public class Button extends HTML {

  public Button(String name, ClickHandler handler) {
    setName(name);
    if (handler != null) {
      addClickHandler(handler);
    }
  }

  public Button() {
  }

  public void setClickHandler(ClickHandler handler) {
    addClickHandler(handler);
  }

  public void setName(String name) {
    setHTML("<div class=\"sa-button\"><b><b><b>" + name + "</b></b></b></div>");
  }

}
